import { createRouter, createWebHistory, RouteRecordRaw } from 'vue-router'

const routes: Array<RouteRecordRaw> = [
    {
        path: "",
        redirect: "/index",
    },
    {
        path: "/scene",
        name: "Scene",
        component: () =>
            import(/* webpackChunkName: "about" */ "../views/Home/scene.vue"),
    },
    {
        path: "/index",
        name: "index",
        component: () =>
            import(/* webpackChunkName: "about" */ "../views/Home/index.vue"),
    },
    {
        path: "/login",
        name: "login",
        component: () =>
            import(/* webpackChunkName: "about" */ "../views/Login/index.vue"),
    }
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
